package com.tencent.examples.blueking.mongo.repository;

import com.tencent.examples.blueking.mongo.model.ObjClassification;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ObjClassificationRepository extends MongoRepository<ObjClassification, String>, QueryByExampleExecutor<ObjClassification> {

    @Query("{ }")
    List<ObjClassification> findFirstMenu();
}
